package com.hzncc.flowable_diboot.entity.refundmanage;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;
import java.lang.Double;
import java.math.BigDecimal;
import jakarta.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import com.diboot.core.util.D;
import com.diboot.core.entity.BaseModel;
import com.diboot.core.entity.BaseEntity;
import com.diboot.core.binding.query.BindQuery;
import com.diboot.core.binding.query.Comparison;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
* 退款凭证 Entity 定义
* @author MyName
* @version 1.0
* @date 2024-11-12
* Copyright © MyCorp
*/
@TableName("mdl_refund_cert")
@Getter @Setter @Accessors(chain = true)
public class RefundCert extends BaseModel {
    private static final long serialVersionUID = 1624892016970654974L;
     /**
     * 租户
     */
     @NotNull(message = "租户不能为空")
     @TableField()
     private String tenantId;

     /**
     * 退款登记ID
     */
     @Length(max=32, message="退款登记ID长度应小于32")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField()
     private String refundRegisterId;

     /**
     * SAP会计凭证号
     */
     @Length(max=100, message="SAP会计凭证号长度应小于100")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField()
     private String sapCertCode;

     /**
     * 会计年度
     */
     @Length(max=100, message="会计年度长度应小于100")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField(value = "`year`")
     private String year;

     /**
     * 凭证日期
     */
     @TableField()
     private LocalDateTime certDate;

     /**
     * 过账日期
     */
     @TableField()
     private LocalDateTime postDate;

     /**
     * 会计期间
     */
     @Length(max=100, message="会计期间长度应小于100")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField()
     private String accountingPeriod;

     /**
     * 凭证类型
     */
     @Length(max=100, message="凭证类型长度应小于100")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField()
     private String certType;

     /**
     * 凭证抬头
     */
     @Length(max=100, message="凭证抬头长度应小于100")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField()
     private String certTitle;

     /**
     * 货币码
     */
     @Length(max=100, message="货币码长度应小于100")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField()
     private String currencyCode;

     /**
     * sap响应消息
     */
     @Length(max=200, message="sap响应消息长度应小于200")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField()
     private String sapResponseMsg;

     /**
     * sap推送状态
     */
     @TableField()
     private Integer sapPushStatus;

     /**
     * 账户分配
     */
     @Length(max=100, message="账户分配长度应小于100")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField()
     private String dis;

     /**
     * 合同编号
     */
     @Length(max=100, message="合同编号长度应小于100")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField()
     private String contractCode;

     /**
     * 销售人员
     */
     @Length(max=100, message="销售人员长度应小于100")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField()
     private String salesperson;

     /**
     * 客户名称
     */
     @Length(max=100, message="客户名称长度应小于100")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField()
     private String customerName;

     /**
     * 成本中心
     */
     @Length(max=100, message="成本中心长度应小于100")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField()
     private String costCenter;

     /**
     * 销售部门
     */
     @Length(max=100, message="销售部门长度应小于100")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField()
     private String salesDept;

     /**
     * 手续费
     */
     @Length(max=100, message="手续费长度应小于100")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField()
     private String fees;


}